home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1993 September
/
September 93.iso
/
Archives
/
Utilities
/
System
/
Application
/
defont1.01
/
DeFont1.01 About
< prev
Wrap
Text File
|
1991-12-18
|
7KB
|
128 lines
DeFont - the default application font cdev
DeFont is a control panel device (cdev) to set the default application
font to whatever font you choose. It allows you to set the font for some
programs (like TeachText) that otherwise do not allow you to change fonts.
Background
The default application font is the font many applications and desk
accessories use when they first launch. The standard font is Geneva. The
identity of the default application font is preserved in a special little
bit of random access memory hidden away on the clock chip. The information
in this RAM is kept alive by a battery when your Mac is off. It is called
parameter ram, or PRAM. A variety of information is stored in PRAM. When
you start your Mac, the contents of PRAM are loaded into the system area
and used to control a variety of things like the blinking rate of the
cursor, the speed of your mouse, the identity of the application font, etc.
Some applications keep independent track of your preferences and ignore
the application font. They will open with whatever font you chose for that
individual application regardless of the identity of the application font
obtained from PRAM and stored in system memory.
Installation
For systems before 7.0, simply put DeFont in your system folder. For
system 7.0, put it in your control panel folder inside the system folder,
or simply drop it onto your system folder icon and the Finder will put it
away for you. You do not need to restart your Mac.
Operation
For systems before 7, choose the control panel desk accessory and click
on the DeFont icon (an italicized F in a frame) on the left side of the
control panel area. You may need to scroll to find the icon. For system 7,
double click the DeFont icon in the control panel folder or open the DeFont
control panel by whatever method you are accustomed to.
Near the top of the control panel is a popup menu listing the current
default application font. Click on the popup menu and a list of all your
fonts appears. Choose the one you wish.
Just above the popup menu is a button titled "Revert to Geneva." Guess
what that does.
There is no need to restart your Macintosh. The change is immediate. Open
an application or desk accessory. If it uses the application font, it will
use whatever font you selected. DeFont has no effect on applications that
ignore the application font. Likewise, if an application is already open it
will most likely continue to use the application font it found when it
first launched. If you want it to use your newly selected font, quit the
application and launch it again.
Beneath the popup menu are four other controls. You may turn the INIT
part of DeFont on or off. If it is on, the font you selected as the default
application font will be set automatically whenever you turn on your Mac.
If the INIT is turned off, at startup your Mac will set the default
application font to the value stored in parameter ram (normally Geneva)
regardless of what you set in the DeFont control panel. You can still come
to the control panel and set the application font manually whenever you
wish whether the INIT is on or off.
You can control whether the DeFont icon is shown at startup, and what it
does. If 'Show icon at startup' is unchecked, no icon will display at
startup. If 'Show icon at startup' is checked, one of four things will
happen depending upon how DeFont is set up. If the INIT is off or DeFont
runs into a problem, an icon with an X through it will appear. If the INIT
is on, but the font is set to the standard Geneva, an icon with a
roman-style F appears, indicating that the INIT is functioning but no
change has been made in the default application font. If a font other than
Geneva is selected and 'Animate startup icon' is checked, the icon will
change smoothly from a roman F to an italicized F, indicating that the
application font is changing. If a font other than Geneva is selected and
'Animate startup icon' is not checked, only the final italicized F appears.
Finally, beneath the controls is some text explaining DeFont and giving
credit where credit is due.
Removing DeFont
Just take it out of your system folder. DeFont does NOT alter parameter
ram. If DeFont changed parameter ram, the change would be quite permanent.
You would have to use DeFont or some parameter ram utility, such as
ParmBlaster, to undo your changes. Taking the approach we did means that if
you simply remove DeFont from your system folder, all goes back to normal.
You don't have to remember to do anything.
Technical Problem
DeFont writes the font number of the font you select into low memory.
This is NOT a recommended practice, but there is no other way to alter the
default application font number. If Apple changes the structure of
parameter ram, DeFont may do bizarre things to whatever value is stored
where the application font number is now. On the plus side, the location
and format of parameter ram information has remained unchanged for years.
Disclaimer
DeFont 1.01 is provided as is, with no warranty or guaranty of any kind.
DeFont is free. A.R.T. Software makes no copyright claim. DeFont is written
and compiled with Think C, and portions are copyright by Symantec
Corporation.
Consider this offering to be HappiWare. If you use it, remember to smile.
A postcard is always appreciated, especially one with nice stamps. Send
comments to A.R.T. Software, P.O. Box 191, Cumberland Ctr., ME 04021. On
the GEnie network, EMail to A.R.T.SOFT.
Credits
Dave Mark's "Macintosh C Programming Primer Volume II" control panel
example code (AFI) provided the skeleton on which we hung DeFont's flesh.
You gotta learn somewhere. It's a great book. Run to the store and buy it
now. DeFont is substantially different in concept and execution from the
example AFI code in Dave Mark's book. Dave Mark has no responsibility for
DeFont.
The ShowINIT code which displays the icon at startup is from Paul Mercer,
Darin Adler, and Paul Snively.
Brad Mohr provided the color icons for v1.01. Thanks Brad.
Version History
v1.0 - released12/13/1991 with all features described above except color
icons (this is in-house version 1.0d10)
v1.01 - released12/18/1991 color icons added, minor glitch in showINIT
code fixed so it would properly display color icons. Thanks Brad!
Also made cosmetic changes in control panel appearance.